package pl.edu.agh.ssm.monitor.visualization;

import java.awt.BorderLayout;
import java.awt.Toolkit;

import javax.swing.JFrame;



/**
 * 
 * @author Monika Nawrot
 * 
 * Main application frame
 */

public class MonitorFrame extends JFrame {

	private static final long serialVersionUID = 569714194472335361L;

	public MonitorFrame() {
		super("Session Monitor");
		
		Toolkit tk = Toolkit.getDefaultToolkit();
		int xSize = ((int) tk.getScreenSize().getWidth());
		int ySize = ((int) tk.getScreenSize().getHeight());
		setSize(xSize,ySize);

		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLayout(new BorderLayout());

		/* create visualisation panel */
		createVisualisationPanel();

		setVisible(true);
	}

	/*
	 * Create visualisation panel
	 */
	private void createVisualisationPanel() {
		MonitorDisplay md = new MonitorDisplay();
		add(md);
	}
}